<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editorr.
 */
namespace Agp\CoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Bondcs\Rede\AuthorizationResponse;

/**
 *
 * @author bondcs
 * @ORM\Table(name="retorno_3ds_rede")
 * @ORM\Entity()
 */
class Retorno3dsRede { 
    
    public function __construct(AuthorizationResponse $resposta) {
        $this->cardSchema = $resposta->getCardScheme();
        $this->country = $resposta->getCountry();
        $this->gatewayReference = $resposta->getGatewayReference();
        $this->merchantreference = $resposta->getMerchantreference();
        $this->mode = $resposta->getMode();
        $this->rawResponse = $resposta->getRawResponse();
        $this->reason = $resposta->getReason();
        $this->status = $resposta->getStatus();
        $this->time = $resposta->getTime();
        $this->mid = $resposta->getMid();
        $this->acsUls = $resposta->getAcsUrl();
        $this->pareqMessage = $resposta->getPareqMessage();
        $this->token = $resposta->getToken();
        
    }
    
    

    /**
     * @var integer $codRede
     *
     * @ORM\Column(name="cod_retorno_3ds_rede", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     *
     */
    protected $codRetorno3dsCartao;
    
    /**
     * 
     * @ORM\Column(name="card_scheme", type="string", length=42, nullable=true)
     * @var string 
     */
    protected $cardSchema;
    
    /**
     * 
     * @ORM\Column(name="country", type="string", length=42, nullable=true)
     * @var string 
     */
    protected $country;
    
    /**
     * 
     * @ORM\Column(name="gateway_reference", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $gatewayReference;
    
    /**
     * 
     * @ORM\Column(name="merchant_reference", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $merchantreference;
    
    /**
     * 
     * @ORM\Column(name="mode", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $mode;
    
    /**
     * 
     * @ORM\Column(name="reason", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $reason;
    
    /**
     * 
     * @ORM\Column(name="status", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $status;
    
    /**
     * 
     * @ORM\Column(name="time", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $time;
    
    /**
     * 
     * @ORM\Column(name="raw_response", type="text", nullable=true)
     * @var string 
     */
    protected $rawResponse;
    
    /**
     * 
     * @ORM\Column(name="mid", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $mid;
    
    /**
     * 
     * @ORM\Column(name="acs_url", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $acsUrl;
    
    /**
     * 
     * @ORM\Column(name="pareq_message", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $pareqMessage;
    
    /**
     * 
     * @ORM\Column(name="token", type="string", length=255, nullable=true)
     * @var string 
     */
    protected $token;
    
    public function getCardSchema() {
        return $this->cardSchema;
    }

    public function getCountry() {
        return $this->country;
    }
    
    public function getGatewayReference() {
        return $this->gatewayReference;
    }

    public function getMerchantreference() {
        return $this->merchantreference;
    }

    public function getMode() {
        return $this->mode;
    }

    public function getReason() {
        return $this->reason;
    }

    public function getStatus() {
        return $this->status;
    }

    public function getTime() {
        return $this->time;
    }

    public function getRawResponse() {
        return $this->rawResponse;
    }

    public function setCardSchema($cardSchema) {
        $this->cardSchema = $cardSchema;
    }

    public function setCountry($country) {
        $this->country = $country;
    }

    public function setGatewayReference($gatewayReference) {
        $this->gatewayReference = $gatewayReference;
    }

    public function setMerchantreference($merchantreference) {
        $this->merchantreference = $merchantreference;
    }

    public function setMode($mode) {
        $this->mode = $mode;
    }

    public function setReason($reason) {
        $this->reason = $reason;
    }

    public function setStatus($status) {
        $this->status = $status;
    }

    public function setTime($time) {
        $this->time = $time;
    }

    public function setRawResponse($rawResponse) {
        $this->rawResponse = $rawResponse;
    }

    public function getMid() {
        return $this->mid;
    }

    public function setMid($mid) {
        $this->mid = $mid;
    }
    
    public function getCodRetorno3dsCartao() {
        return $this->codRetorno3dsCartao;
    }

    public function getAcsUrl() {
        return $this->acsUrl;
    }

    public function getPareqMessage() {
        return $this->pareqMessage;
    }

    public function getToken() {
        return $this->token;
    }

    public function setCodRetorno3dsCartao($codRetorno3dsCartao) {
        $this->codRetorno3dsCartao = $codRetorno3dsCartao;
    }

    public function setAcsUrl($acsUrl) {
        $this->acsUrl = $acsUrl;
    }

    public function setPareqMessage($pareqMessage) {
        $this->pareqMessage = $pareqMessage;
    }

    public function setToken($token) {
        $this->token = $token;
    }


}

?>
